package com.liu.domain;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by liu on 17-9-12.
 */
@Entity
public class teacher {
    @Id
    private String tea_id;     //学生科老师编号
    private String name;   //姓名
    private String sex;    //性别
    private String password = "123";   //密码
    private String phone;   //手机
    private String IDcard;   //身份证
    private String job;      //职位
    private String tel;    //办公室电话
    private String email;   //邮箱
    private int role=1 ;     //角色   1代表管理员

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIDcard() {
        return IDcard;
    }

    public void setIDcard(String IDcard) {
        this.IDcard = IDcard;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getTea_id() {
        return tea_id;
    }

    public void setTea_id(String tea_id) {
        this.tea_id = tea_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "{" +
                "\"tea_id\":" + tea_id +
                ", \"name\":\"" + name + '\"' +
                ", \"sex\":\"" + sex + '\"' +
                ", \"password\":\"" + password + '\"' +
                ", \"phone\":\"" + phone + '\"' +
                ", \"IDcard\":\"" + IDcard + '\"' +
                ", \"job\":\"" + job + '\"' +
                ", \"tel\":\"" + tel + '\"' +
                ", \"email\":\"" + email + '\"' +
                ", \"role\":\"" + role + '\"' +
                '}';
    }
}
